package com.yuyou.tas.lesson.service;

import com.yuyou.tas.service.api.lesson.entity.LessonResource;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import java.util.List;

public interface ILessonResourceService {

    int insert(LessonResource record);

    LessonResource selectByPrimaryKey(Long id);
    
    LessonResource selectByResourceId(String resourceId);

    ResBoolSimpleInfo<String> delByResourceId(String resourceId);
    
    int updateByPrimaryKeySelective(LessonResource record);
    
    ResBoolSimpleInfo<String> addResourceTemp(String resourceId,Long organizationId,Long lessonClassId,Long userId);
    
    ResBoolSimpleInfo<String> addResource(int type,String resourceId,Long organizationId,Long lessonClassId,Long userId);
    
//    ResBoolSimpleInfo<String> addResources(int type,List<String> resourceId,Long organizationId,Long lessonClassId,Long userId);

	ResBoolSimpleInfo<String> delByResourceIds(String[] resourceIds);

    List<LessonResource> selectTemps();

    List<String> findOldDataLeave();
    
}
